<%@ page language="java" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@taglib prefix="m" uri="/cutm_tags"%>
<html>
<head>
<title>出像统计</title>
<link rel="stylesheet"
	href="<s:url value="/common/css/datepicker.css"/>" type="text/css" />
<script type="text/javascript"
	src="<s:url value="/common/script/ui.datepicker.js"/>"></script>
<script type="text/javascript"
	src="<s:url value="/common/script/ui.datepicker-fr.js"/>"></script>
<script type="text/javascript">
$(document).ready(function() {

});
function print() {
	var programId = $('#programId').val();
	if(programId!=''){
		var url=BaseJs.action('programming/SearchProgram!printProgram')+'?programming.id='+programId;
		window.open(url);
	}else{
		 alert('请选择编排的节目');
	}
}
</script>
</head>
<body>
<h2 class="title"><span>查询条件</span></h2>
<s:form id="serchForm" action="programming/SearchProgram!countPhoto">
	<h3>请输入查询条件</h3>
	<table id="sTable" class="form">
		<tbody>
			<tr>
				<th width="20%">播出日期</th>
				<td width="40%"><m:date name="beginDate" />-<m:date
					name="endDate" /></td>
				<th width="20%">播出栏目</th>
				<td width="20%"><m:select enumType="program.type"
					name="programming.column" /></td>
			</tr>
			<tr>
				<th>人员</th>
				<td><m:dropUser name="userId" /></td>
				<th></th>
				<td></td>
			</tr>
		</tbody>
	</table>
	<div class="btnGroup"><s:submit id="search" value="查询" /></div>
</s:form>
<s:if test="countList!=null">
	<h3>稿件列表（共<s:property value="countList.size" />条记录）</h3>
		<table width="100%" class="list">
			<tr>
				<th width="25%">姓名</th>
				<th width="25%">日期</th>
				<th width="25%">栏目</th>
				<th width="25%">出像处</th>
			</tr>

			<tbody>
				<s:iterator value="countList">
					<tr>
						<td><s:property value="user.name" /></td>
						<td><s:date name="date"
							format="yyyy-MM-dd" /></td>
						<td><m:property value="column" /></td>
						<td><s:property value="type" /></td>
					</tr>
				</s:iterator>
			</tbody>
		</table>
</s:if>
</body>
</html>